package com.stu.student_back_end.controller;

import com.stu.student_back_end.common.Result;
import com.stu.student_back_end.controller.dto.PageDTO;
import com.stu.student_back_end.service.ITblMoveAndOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * 迁入迁出记录 controller层接口
 */
@RestController
public class MoveAndOutController {

    @Autowired
    private ITblMoveAndOutService moveAndOutService;

    /**
     * 分页查询
     * @param pageDTO
     * @return
     */
    @PostMapping("/m/query")
    public Result queryMoveAndOut(@RequestBody PageDTO pageDTO) {
        return Result.success(moveAndOutService.queryMoveAndOutPage(pageDTO));
    }
}
